#ifndef TestSet_H
#define TestSet_H

#ifdef TestSet_Variable
#define TestSet_Extern

static U8 SetFreTime;
static U8 SetFreCount;

static U8 SetExpTime;
static U8 SetExpCount;

static U8 SetExhTime;
static U8 SetExhCount;

static U8 SetInFanTime;
static U8 SetInFanCount;

static U8 SetOutFanTime;
static U8 SetOutFanCount;

static U8 SetSwStepTime;
static U8 SetSwStepCount;

static U8 SetTestRunTime;
static U8 SetTestRunCount;

static U8 SeteepRomTime;
static U8 SeteepRomCount;

static U8 SetJumpTypeTime;
static U8 SetJumpTypeCount;

static U8 SetTempRepairTime;
static U8 SetTempRepairCount;

static U8 SettarTempTime;
static U8 SettarTempCount;

static U8 app_set_test_Time;
static U8 app_set_test_Count;

static U8 app_show_data_Time;
static U8 app_show_data_Count;

#else
#define TestSet_Extern extern
#endif

TestSet_Extern U8 TestRunStat;
TestSet_Extern U8 CapTestStat;

TestSet_Extern U8 SetFreValue;
TestSet_Extern U16 SetExpValue;
TestSet_Extern U8 SetExhValue;

TestSet_Extern U16 SetInFanValue;
TestSet_Extern U16 SetOutFanValue;
TestSet_Extern U8 SetSwStepValue;

TestSet_Extern U8 SetTestTimeMin;
TestSet_Extern U8 SetTestTimeHour;

TestSet_Extern ram_byte TestFlag1;
#define f_TestSwChg TestFlag1.bit.b0
#define f_TestFanChg TestFlag1.bit.b1
#define f_eepRomRst TestFlag1.bit.b2
#define f_jumpTypeRst TestFlag1.bit.b3
#define f_tarTempLimit TestFlag1.bit.b4

TestSet_Extern U8 setCorreck;

TestSet_Extern U8 setAppSetTest;
TestSet_Extern U8 setAPPShowData;

void set_captest(U8);
void set_exp_step(U16);
void set_exh_temp(U8);
void set_comp_freq(U8);
void set_out_fan(U16);
void set_in_fan(U16);
void set_sw_step(U8);
void set_correct(U8);
void set_app_set_test(U8);
void set_app_show_data(U8);

void TestRunSet(void);
void eepRomReset(void);
void JumpTypeReset(U8);
void TempRepairReset(void);
void tarTemp_limit_set(void);

void tuya_app_set_test(void);
void tuya_app_show_data(void);

void TestStatSet(void);
void LightJudge(void);
void SleepJudge(void);
void CaptestSet(void);
void TestSetTime(void);
U16 GetValueJudge1(void);
U16 GetValueJudge2(void);

void ClrTestValue(void);
#endif
